<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Framework by Gaétan Collaud: Référence de la classe MySql</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&nbsp;associées</span></a></li>
      <li class="current"><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li><a href="hierarchy.html"><span>Hiérarchie&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="functions.html"><span>Champs&nbsp;de&nbsp;donnée</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Référence de la classe MySql</h1><!-- doxytag: class="MySql" --><!-- doxytag: inherits="AbstractSql" -->
<p>Classe Sql.  
<a href="#_details">Plus de détails...</a></p>
<div class="dynheader">
Graphe d'héritage de MySql:</div>
<div class="dynsection">
 <div class="center">
  <img src="class_my_sql.png" usemap="#MySql_map" alt=""/>
  <map id="MySql_map" name="MySql_map">
<area href="class_abstract_sql.html" alt="AbstractSql" shape="rect" coords="0,56,76,80"/>
<area href="interface_itf_sql.html" alt="ItfSql" shape="rect" coords="0,0,76,24"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#aa16137c040005c87b7186e3f25f36a5c">__construct</a> ($host, $user, $pass, $bdd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#aa69c8bf1f1dcf4e72552efff1fe3e87e">close</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ferme la déconnexion.  <a href="#aa69c8bf1f1dcf4e72552efff1fe3e87e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#a0ea0cad5a63f3cbf7991f641af3647c7">query</a> ($query, $fetch_array=false)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Effectue une requête aver retour (SELECT).  <a href="#a0ea0cad5a63f3cbf7991f641af3647c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#a210cde0f5961845334f7813da6d5ad84">exec</a> ($query)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Effectue une requête sans retour (INSERT, UPDATE, DELETE, .  <a href="#a210cde0f5961845334f7813da6d5ad84"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#a6384591ddfa09e979deb8a695bca0f67">lastInsertId</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne la clé primaire du dernier élément ajouté.  <a href="#a6384591ddfa09e979deb8a695bca0f67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#a5818c2ee3719443a759bd0911f4ac78a">escapeCallBack</a> ($t)</td></tr>
<tr><td colspan="2"><h2>Fonctions membres publiques statiques</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#a9867ef767ef8a2908f12b40e135729e1">escape</a> ($t)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Echape un text pour l'utiliser dans une requête.  <a href="#a9867ef767ef8a2908f12b40e135729e1"></a><br/></td></tr>
<tr><td colspan="2"><h2>Fonctions membres privées</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#a78572828d11dcdf2a498497d9001d557">connect</a> ()</td></tr>
<tr><td colspan="2"><h2>Attributs privés</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_sql.html#a846efd556f8657d918aba7752b01dc9b">$conInfos</a> = array()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Infos de connexion.  <a href="#a846efd556f8657d918aba7752b01dc9b"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Description détaillée</h2>
<p>Classe Sql. </p>
<p>Permet d'interagir avec la base de données </p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Gaetan Collaud </dd></dl>
<hr/><h2>Documentation des constructeurs et destructeur</h2>
<a class="anchor" id="aa16137c040005c87b7186e3f25f36a5c"></a><!-- doxytag: member="MySql::__construct" ref="aa16137c040005c87b7186e3f25f36a5c" args="($host, $user, $pass, $bdd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__construct </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>host</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>user</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>pass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>bdd</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Documentation des fonctions membres</h2>
<a class="anchor" id="aa69c8bf1f1dcf4e72552efff1fe3e87e"></a><!-- doxytag: member="MySql::close" ref="aa69c8bf1f1dcf4e72552efff1fe3e87e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">close </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ferme la déconnexion. </p>

<p>Implémente <a class="el" href="interface_itf_sql.html#aa69c8bf1f1dcf4e72552efff1fe3e87e">ItfSql</a>.</p>

</div>
</div>
<a class="anchor" id="a78572828d11dcdf2a498497d9001d557"></a><!-- doxytag: member="MySql::connect" ref="a78572828d11dcdf2a498497d9001d557" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">connect </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9867ef767ef8a2908f12b40e135729e1"></a><!-- doxytag: member="MySql::escape" ref="a9867ef767ef8a2908f12b40e135729e1" args="($t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static escape </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>t</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Echape un text pour l'utiliser dans une requête. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$t le texte à échaper </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>String le texte échapé </dd></dl>

<p>Implémente <a class="el" href="interface_itf_sql.html#a9867ef767ef8a2908f12b40e135729e1">ItfSql</a>.</p>

</div>
</div>
<a class="anchor" id="a5818c2ee3719443a759bd0911f4ac78a"></a><!-- doxytag: member="MySql::escapeCallBack" ref="a5818c2ee3719443a759bd0911f4ac78a" args="($t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">escapeCallBack </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>t</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a210cde0f5961845334f7813da6d5ad84"></a><!-- doxytag: member="MySql::exec" ref="a210cde0f5961845334f7813da6d5ad84" args="($query)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">exec </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>query</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Effectue une requête sans retour (INSERT, UPDATE, DELETE, . </p>
<p>..) </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$query la requête </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>true si tout est ok </dd></dl>

<p>Implémente <a class="el" href="interface_itf_sql.html#a210cde0f5961845334f7813da6d5ad84">ItfSql</a>.</p>

</div>
</div>
<a class="anchor" id="a6384591ddfa09e979deb8a695bca0f67"></a><!-- doxytag: member="MySql::lastInsertId" ref="a6384591ddfa09e979deb8a695bca0f67" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">lastInsertId </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retourne la clé primaire du dernier élément ajouté. </p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>int la clé primaire </dd></dl>

<p>Implémente <a class="el" href="interface_itf_sql.html#a6384591ddfa09e979deb8a695bca0f67">ItfSql</a>.</p>

</div>
</div>
<a class="anchor" id="a0ea0cad5a63f3cbf7991f641af3647c7"></a><!-- doxytag: member="MySql::query" ref="a0ea0cad5a63f3cbf7991f641af3647c7" args="($query, $fetch_array=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">query </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>query</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>fetch_array</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Effectue une requête aver retour (SELECT). </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>String</em>&nbsp;</td><td>$query </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>boolean</em>&nbsp;</td><td>$fetch_array </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd><a class="el" href="interface_itf_sql_ressource.html" title="Interface des ressources de retour de la base de données.">ItfSqlRessource</a> la ressource </dd></dl>

<p>Implémente <a class="el" href="interface_itf_sql.html#a0ea0cad5a63f3cbf7991f641af3647c7">ItfSql</a>.</p>

</div>
</div>
<hr/><h2>Documentation des champs</h2>
<a class="anchor" id="a846efd556f8657d918aba7752b01dc9b"></a><!-- doxytag: member="MySql::$conInfos" ref="a846efd556f8657d918aba7752b01dc9b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">$conInfos = array()<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Infos de connexion. </p>

</div>
</div>
<hr/>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>libs/bdd/mysql/<a class="el" href="_my_sql_8php.html">MySql.php</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Généré le Sun May 30 20:39:44 2010 pour Framework by Gaétan Collaud par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
